//package com.openx.xoj.mapper;
//
//import com.openx.xoj.model.Teacher.ExamQuestion;
//import org.apache.ibatis.annotations.Delete;
//import org.apache.ibatis.annotations.Insert;
//import org.apache.ibatis.annotations.Mapper;
//import org.apache.ibatis.annotations.Param;
//import org.apache.ibatis.annotations.Select;
//
//import java.util.List;
//import java.util.Map;
//
//@Mapper
//public interface ExamQuestionMapper {
//
//    @Insert("INSERT INTO exam_questions (exam_id, question_id) VALUES (#{examId}, #{questionId})")
//    void insert(ExamQuestion examQuestion);
//
//    @Select("SELECT * FROM exam_questions WHERE id = #{id}")
//    ExamQuestion selectById(int id);
//
//    @Select("SELECT * FROM exam_questions WHERE exam_id = #{examId}")
//    List<ExamQuestion> selectByExamId(int examId);
//
//    @Delete("DELETE FROM exam_questions WHERE id = #{id}")
//    void deleteById(int id);
//
//    @Select("SELECT question_id FROM exam_questions WHERE exam_id = #{examId}")
//    List<Long> selectQuestionIdsByExamId(int examId);
//
//    @Delete("DELETE FROM exam_questions WHERE exam_id = #{examId} AND question_id = #{questionId}")
//    void deleteByExamIdAndQuestionId(@Param("examId") Long examId, @Param("questionId") Long questionId);
//}
